this.name = "rmb-law-missile-script";
this.author = "Ramirez";
this.copyright = "January 2009";
this.description = "Prevents an Orange Tear lawmaker missile from being used against stations and other stationary objects";
this.version = "1.0";
this.checkTargetVulnerability = function()
 {
if(!this.ship.target || (this.ship.target.isStation && this.ship.target.maxSpeed == 0) || this.ship.target.scanClass == "CLASS_ROCK") return
if(this.ship.target.isPlayer) return
if(this.ship.target.AI == "rmb-stunnedAI.plist") {
   log("RMB-LAW-MISSILE-SCRIPT.JS","Target already stunned, aborting.");
} else {
   log("RMB-LAW-MISSILE-SCRIPT.JS","Stunning target.");
   this.ship.target.setAI("rmb-stunnedAI.plist")
}
} 